load("//tools:defs.bzl", "go_library", "go_test")

package(
    default_applicable_licenses = ["//:license"],
    licenses = ["notice"],
)

go_library(
    name = "ports",
    srcs = [
        "flags.go",
        "ports.go",
    ],
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/rand",
        "//pkg/sync",
        "//pkg/tcpip",
        "//pkg/tcpip/header",
    ],
)

go_test(
    name = "ports_test",
    srcs = ["ports_test.go"],
    library = ":ports",
    deps = [
        "//pkg/rand",
        "//pkg/tcpip",
        "//pkg/tcpip/testutil",
        "@com_github_google_go_cmp//cmp:go_default_library",
    ],
)
